package com.api.equipment;

import com.api.equipment.domain.LgEquipmentError;
import com.api.equipment.domain.LgMachine;
import com.api.equipment.domain.LgTemperature;
import com.api.equipment.domain.LgVehicle;
import com.api.equipment.factory.RemoteEquipmentFallbackFactory;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 文件服务
 *
 * @author ruoyi
 */
@FeignClient(value = "ruoyi-equipment", fallbackFactory = RemoteEquipmentFallbackFactory.class)
public interface RemoteEquipmentService
{
    /**
     * 上传文件
     *
     * @param file 文件信息
     * @return 结果
     */
    @GetMapping("/api/list")
    public List<LgTemperature> list1();

    @PostMapping("/api/setTem")
    public int setTem(@RequestBody LgTemperature lgTemperature);

    @PostMapping("/api/select")
    public List<LgVehicle> selectLgVehicleList(LgVehicle lgVehicle);

    @PostMapping("/api/update")
    public int edit(@RequestBody LgEquipmentError lgEquipmentError);

    @PostMapping("/api/listee")
    public List<LgEquipmentError> list(@RequestBody LgEquipmentError lgEquipmentError);

    @PostMapping("/api/insertorderlocation")
    public AjaxResult insertOrderLocation();
    @PostMapping("/api/selectBylicensePlate")
    public LgTemperature selectLgVehicleBylicensePlate(@RequestParam("licensePlate") String licensePlate);

    @PostMapping("/api/listmac")
    public List<LgMachine> list(LgMachine lgMachine);
    @PostMapping("/api/selectByMacId")
    public LgMachine getInfo(@RequestParam("id") String id);
    @PostMapping("/api/updatemac")
    public int update(@RequestBody LgMachine lgMachine);
    @PostMapping("/api/getTemInfo")
    public LgTemperature getTemInfo(@RequestParam("id")Integer id);
    @PostMapping("/getEquipError")
    public LgEquipmentError getEquipError(@RequestParam("deviceNumber")Integer deviceNumber);
    @PostMapping("/api/insertEquipError")
    public int insertEquipError(@RequestBody LgEquipmentError lgEquipmentError);
}
